import request from '@/utils/request'

// 查询银行卡分类列表
export function listBankcategory(query) {
  return request({
    url: '/carowner/bankcategory/list',
    method: 'get',
    params: query
  })
}

// 查询银行卡分类详细
export function getBankcategory(id) {
  return request({
    url: '/carowner/bankcategory/' + id,
    method: 'get'
  })
}

// 新增银行卡分类
export function addBankcategory(data) {
  return request({
    url: '/carowner/bankcategory',
    method: 'post',
    data: data
  })
}

// 修改银行卡分类
export function updateBankcategory(data) {
  return request({
    url: '/carowner/bankcategory',
    method: 'put',
    data: data
  })
}

// 删除银行卡分类
export function delBankcategory(id) {
  return request({
    url: '/carowner/bankcategory/' + id,
    method: 'delete'
  })
}
